<template>
  <div class="addTeamMember">
    <div class="content">
        <p>
          <label for="addTeamMember">添加群员</label>
          <input type="text" id="addTeamId" placeholder="请输入群号" v-model="MId">
          <input type="text" id="addTeamMember" placeholder="请输入群员名称" v-model="MC">
        </p>
        <div class="btn" @click="add">提 交</div>
    </div>
  </div>


</template>
<script>
import FHeader from "./com/FHeader";
import { send, addTeamMember } from "../../im";
export default {
  data() {
    return {
      // fhObj: {
      //   icon: {
      //     txt: "消息",
      //     num: 5
      //   },
      //   title: "我是大魔王"
      // }
      MC: "",
      MId:""
    };
  },
  mounted() {},
  methods: {
    add(){ 
      console.info("this.MId=============",this.MId,this.MC)
      addTeamMember(this.MId,this.MC,function(error, obj){
          console.log("添加群员成功",error, obj);
      });
    }
  },
  components: {
    FHeader
  }
  
};
</script>
<style lang="stylus" scoped>
.addFriend {
  width: 100%;
  padding-top: 1rem;

  .content {
    padding: 0 0.2rem;

    input {
      width: 6rem;
      height: 0.7rem;
      background: #FFF;
      border-radius: 0.1rem;
      padding: 0 0.1rem;
      font-size: 13px;
    }

    span {
      font-size: 15px;
    }
  }
}
</style>
